libxl: suspend: New libxl__domain_pvcontrol_xspath
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 5 Dec 2013 18:27:30 +0000 (18:27 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 17 Mar 2014 15:54:00 +0000 (15:54 +0000)
commit04a194285641dfaf68d07a44b82bef7eba532ddb
treebe44916cab9aac1db543b789d73d3a6dc2e7e89f
parent376f564f123eba262e98c41fbaf4041aaea1f5b1
libxl: suspend: New libxl__domain_pvcontrol_xspath

Factor out the pv control node xenstore path calculation into
libxl__domain_pvcontrol_xspath.

This xs path calculation was open coded in
libxl__domain_pvcontrol_read and _write.  This is undesirable because
it duplicates the code and because it makes the path inaccessible to
other parts of libxl (which are soon going to want it).

No functional change.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl.c
tools/libxl/libxl_internal.h